/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.saarh;

import com.vaadin.Application;
import com.vaadin.terminal.gwt.server.ApplicationServlet;
import com.vaadin.ui.Window;
import java.io.BufferedWriter;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;

/**
 *
 * @author Soma
 */
public class SaarhServlet extends ApplicationServlet {

    @Override
    protected void writeAjaxPageHtmlVaadinScripts(Window window,
            String themeName, Application application, BufferedWriter page,
            String appUrl, String themeUri, String appId,
            HttpServletRequest request) throws ServletException, IOException {
        page.write("<script type=\"text/javascript\">\n");
        page.write("document.write(\"<script language='javascript' src='/SAARH/jquery/jquery-1.4.4.min.js'><\\/script>\");\n");
        page.write("document.write(\"<script language='javascript' src='/SAARH/js/highcharts.js'><\\/script>\");\n");
        page.write("document.write(\"<script language='javascript' src='/SAARH/js/modules/exporting.js'><\\/script>\");\n");
        page.write("</script>\n");
        super.writeAjaxPageHtmlVaadinScripts(window, themeName, application, page, appUrl, themeUri, appId, request);
    }
}
